<?php 
require_once 'sesi_login.php';
require_once 'konfigurasi.php';
fungsi('umum');

define('PAGE', 'Tahanan');
define('PAGE_ICO', 'icon-bank');
define('PAGE_URL', 'tahanan.php');
	
koneksi_buka();
panggil_header();
?>

<div id="da-content-area">
<div class="row-fluid">

<div class="span12">
	<div class="da-panel collapsible">
		<div class="da-panel-header">
			<span class="da-panel-title">
				<i class="icon-bank"></i> Data Tahanan&nbsp;
				<button id="da-ex-dialog-form" rel="tooltip" data-placement="top" class="btn" title="Tambah Tahanan"><i class="icon-circle-plus"></i></button> &nbsp;
				
			</span>
		</div>
		<div class="da-panel-content da-table-container">
			<table id="da-ex-datatable-numberpaging" class="da-table checkable">
				<thead>
					<tr>
						<th>KODE</th>
						<th>NAMA LENGKAP</th>
						<th>PENAHANAN</th>
						<th></th>
					</tr>
				</thead>
				<tbody>
					<?php 
						$q = mysql_query("SELECT * FROM t_tahanan");
						while($dt = mysql_fetch_array($q)) {
					?>
					<tr>
						<td><?php echo $dt['kd_tersangka'] ?></td>
						<td><?php echo $dt['nm_lengkap'] ?></td>
						<td><?php echo $dt['nm_lengkap'] ?></td>
						<td class="da-icon-column">
							<a href="#" rel="tooltip" data-placement="top" title="Detail"><i class="icol-magnifier"></i></a>
							<a href="#" rel="tooltip" data-placement="top" title="Ubah"><i class="icol-pencil"></i></a>
							<a href="#" rel="tooltip" data-placement="top" title="Hapus"><i class="icol-cross"></i></a>
						</td>
					</tr>
					<?php } ?>
				</tbody>
			</table>
		</div>
	</div>
</div>

</div>
</div>

<?php
panggil_footer();
koneksi_tutup();
?>
